import java.util.Scanner;

public class text3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个长方形的长和宽");
        double len1 = sc.nextDouble();
        double width1 = sc.nextDouble();
        System.out.println("请输入第二个长方形的长和宽");
        double len2 = sc.nextDouble();
        double width2 = sc.nextDouble();
        double area1 = rectangularArea(len1, width1);
        double area2 = rectangularArea(len2, width2);
        if (area1 == area2) {
            System.out.println("两个长方形的面积一样大");
        } else if (area1 > area2) {
            System.out.println("第一个长方形的面积大");
        } else {
            System.out.println("第二个长方形的面积大");
        }
    }
    public static double rectangularArea(double len, double width) {
        return len * width;
    }
}
